projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f78643e
)
(x_create_bitmap_from_file): Fail immediately if magic.
author
Karl Heuer
<kwzh@gnu.org>
Sat, 29 Aug 1998 15:55:28 +0000
(15:55 +0000)
committer
Karl Heuer
<kwzh@gnu.org>
Sat, 29 Aug 1998 15:55:28 +0000
(15:55 +0000)
src/xfns.c
patch
|
blob
|
history
diff --git
a/src/xfns.c
b/src/xfns.c
index 4457d2200d428e1856224bc2cd995e8dc2c54d98..48bda27702a2fdf7c90d3686b51364c7fec114c9 100644
(file)
--- a/
src/xfns.c
+++ b/
src/xfns.c
@@
-590,6
+590,9
@@
x_create_bitmap_from_file (f, file)
fd = openp (Vx_bitmap_file_path, file, "", &found, 0);
if (fd < 0)
return -1;
+ /* XReadBitmapFile won't handle magic file names. */
+ if (fd == 0)
+ return -1;
close (fd);
filename = (char *) XSTRING (found)->data;